package com.newjiabo.ski.service.impl;

import java.util.List;
import com.newjiabo.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.newjiabo.ski.mapper.SkiSetMealShootMapper;
import com.newjiabo.ski.domain.SkiSetMealShoot;
import com.newjiabo.ski.service.ISkiSetMealShootService;

/**
 * 约拍套餐Service业务层处理
 * 
 * @author CaoMengHui
 * @date 2023-10-23
 */
@Service
public class SkiSetMealShootServiceImpl implements ISkiSetMealShootService 
{
    @Autowired
    private SkiSetMealShootMapper skiSetMealShootMapper;

    /**
     * 查询约拍套餐
     * 
     * @param id 约拍套餐主键
     * @return 约拍套餐
     */
    @Override
    public SkiSetMealShoot selectSkiSetMealShootById(String id)
    {
        return skiSetMealShootMapper.selectSkiSetMealShootById(id);
    }

    /**
     * 查询约拍套餐列表
     * 
     * @param skiSetMealShoot 约拍套餐
     * @return 约拍套餐
     */
    @Override
    public List<SkiSetMealShoot> selectSkiSetMealShootList(SkiSetMealShoot skiSetMealShoot)
    {
        return skiSetMealShootMapper.selectSkiSetMealShootList(skiSetMealShoot);
    }

    /**
     * 新增约拍套餐
     * 
     * @param skiSetMealShoot 约拍套餐
     * @return 结果
     */
    @Override
    public int insertSkiSetMealShoot(SkiSetMealShoot skiSetMealShoot)
    {
        skiSetMealShoot.setCreateTime(DateUtils.getNowDate());
        return skiSetMealShootMapper.insertSkiSetMealShoot(skiSetMealShoot);
    }

    /**
     * 修改约拍套餐
     * 
     * @param skiSetMealShoot 约拍套餐
     * @return 结果
     */
    @Override
    public int updateSkiSetMealShoot(SkiSetMealShoot skiSetMealShoot)
    {
        skiSetMealShoot.setUpdateTime(DateUtils.getNowDate());
        return skiSetMealShootMapper.updateSkiSetMealShoot(skiSetMealShoot);
    }

    /**
     * 批量删除约拍套餐
     * 
     * @param ids 需要删除的约拍套餐主键
     * @return 结果
     */
    @Override
    public int deleteSkiSetMealShootByIds(String[] ids)
    {
        return skiSetMealShootMapper.deleteSkiSetMealShootByIds(ids);
    }

    /**
     * 删除约拍套餐信息
     * 
     * @param id 约拍套餐主键
     * @return 结果
     */
    @Override
    public int deleteSkiSetMealShootById(String id)
    {
        return skiSetMealShootMapper.deleteSkiSetMealShootById(id);
    }
}
